package daytwo.while循环;

//**练习2：**打印1~100之间所有是7的倍数的整数的个数及总和
public class pra1 {
    public static void main(String[] args) {
        int count = 0;
        int sum = 0;
        for (int i = 1; i <= 100; i++) {
            if (i % 7 == 0) {
                count++;
                sum += i;
            }
        }
        System.out.println("个数" + count);
        System.out.println("总和" + sum);
    }
}
